<div id="main_container">

	{$oZoneHeader}
    
    <div class="main_content">
        {$oZoneTopMenu}
        <div class="center_content">  
            <div class="left_content">
                {$oZoneLeftMenu}
            </div>
    
            <div class="right_content">
        
                <h2>Gestion des publicités</h2> 
                    
                    
                <table id="rounded-corner" summary="2007 Major IT Companies' Profit">
                    <thead>
                        <tr>
                            <th scope="col" class="rounded">Titre</th>
                            <th scope="col" class="rounded">Rubrique</th>
                            <th scope="col" class="rounded">Emplacement</th>
                            <th width="350" scope="col" class="rounded">Publicité</th>
                            <th scope="col" class="rounded">Statut</th>
                            <th scope="col" class="rounded">Editer</th>
                            <th scope="col" class="rounded-q4">Supprimer</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $pub as $item}
                            <tr>
                                <td>{$item->pub_name}</td>
                                <td>{$item->rub_name}</td>
                                <td>{$item->location_name}</td>

                                <td style="width:100px; overflow:hidden;"><div style="width:250px; overflow:hidden;">{$item->pub_tag}</div></td>
                                <td align="center">
                                    {if $item->pub_status == '1'} 
                                        {image $j_basepath.'design/back/img/ico_activer.gif',array('title'=>'Activer','alt'=>'Activer')}
                                    {else}
                                        {image $j_basepath.'design/back/img/ico_desactiver.gif',array('title'=>'Désactiver','alt'=>'Désactiver')}
                                    {/if}
                                </td>
                                <td align="center"><a href="{jurl 'publicite~BoPub:editer', array('id'=>$item->pub_id)}">{image $j_basepath.'design/back/img/user_edit.png',array('title'=>'','alt'=>'','border'=>0)}</a></td>
                                <td align="center"><a href="{jurl 'publicite~BoPub:supprimer', array('id'=>$item->pub_id)}" class="ask">{image $j_basepath.'design/back/img/trash.png',array('title'=>'','alt'=>'','border'=>0)}</a></td>
                            </tr>
                        {/foreach}

                    </tbody>
                </table>

                 <a href="{jurl 'publicite~BoPub:editer'}" class="bt_green"><span class="bt_green_lft"></span><strong>Ajouter</strong><span class="bt_green_r"></span></a>
     
            </div><!-- end of right content-->
        </div>   <!--end of center content -->               

        <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    </div>

</div>		
